package springBootweb.com.dome.lession1.start;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Configuration;

@EnableAutoConfiguration
@Configuration // 相当于配置文件。xml
// // 自动装配，可以根据依赖的jar包进行一些操作// 扫描当前目录
// @MapperScan("springBootweb.com.dome.lession1.dao")
// @SpringBootApplicatoin是用的@ComponentScan扫描，扫描的是Component，包括@Component,
// @Controller, @Service,
// @Repository等，而@EnableFeignClients扫描的是@FeignClient，所以在指定扫描路径时要分别指定，否则会报异常：
//
@ServletComponentScan
@SpringBootApplication(scanBasePackages = { "springBootweb.com.dome.lession1" })
public class APPStart {

	public static void main(String[] args) {
		SpringApplication.run(APPStart.class, args);
	}
}
